


			
	
	
	
	
	
	
	
	
	/*
	 * 二级联动选择器
	 */
	function option(){
	var sel1 = document.getElementById("a")
	var sel2 = document.getElementById("b")

    var arr = ["神州行充值卡", "盛大一卡通", "征途支付卡", "骏网一卡通","腾讯Q币卡","联通充值卡","久游一卡通","网易一卡通","完美一卡通","搜狐一卡通","电信充值卡","光宇一卡通","纵游一卡通","天下一卡通","天宏一卡通","神州行浙江卡","神州行江苏卡","神州行辽宁卡","神州行福建卡","盛付通卡"];
    var arr1 = ["10元", "20元", "30元", "50元","100元","200元","300元","500元"];
    var arr2 = ["5元", "10元", "15元", "25元","30元","35元","45元","50元","100元","350元","500元","1000元"];
    var arr3 = ["5元", "10元", "15元", "18元", "20元", "25元", "30元", "50元", "60元", "68元", "100元", "120元", "180元", "208元", "250元", "300元", "468元", "500元"];
    var arr4 = ["1元", "2元", "4元", "5元","6元", "10元", "15元", "20元", "30元", "50元", "100元", "200元", "300元", "500元", "1000元"];
    var arr5 = ["5元", "10元", "15元", "20元","30元","50元","60元","100元","200元"];
    var arr6 = ["10元", "20元", "30元", "50元","100元","300元","500元"];
    var arr7 = ["5元", "10元", "15元", "20元","25元","30元","50元"];
    var arr8 = ["10元", "15元", "20元", "30元","50元"];
    var arr9 = ["10元","30元","50元","100元"];
    var arr10 = ["10元", "10元", "15元", "30元","40元","100元"];
    var arr11 = ["10元", "30元", "50元", "100元","300元"];
    var arr12 = ["10元", "20元", "30元", "50元","100元"];
    var arr13 = ["10元", "15元", "30元", "50元","100元"];
    var arr14 = ["5元","6元","10元","15元","30元","40元","50元","100元"];
    var arr15 = ["5元", "10元", "15元", "30元","40元","50元","100元"];
    var arr16 = [];
    var arr17 = [];
    var arr18 = [];
    var arr19 = [];
    var arr20 = ["5元","9元","10元","15元","25元","30元","40元","45元","50元","100元","300元","500元","1000元","1500元"];
	
    function addChild_(abj, arr) {
      for (var i = 0; i < arr.length; i++) {
        // 循环创建opt元素
        var opt = document.createElement("option");
        // 设置option元素的内容，内容为传入的数组内容
        opt.innerText = arr[i];
        // 把option添加到select中
        abj.appendChild(opt);
      }
    }
    // 给第一个下拉列表添加数据
    addChild_(sel1, arr);
    // 给第一个下拉列表添加改变值得方法
    sel1.onchange = function () {
      remoOpt();
//      console.log(sel1.selectedIndex)
      switch (sel1.selectedIndex){
          case 1:
          addChild_(sel2,arr1);
          break;
          case 2:
          addChild_(sel2,arr2);
          break;
          case 3:
          addChild_(sel2,arr3);
          break;
        	  case 4:
          addChild_(sel2,arr4);
          break;
          case 5:
          addChild_(sel2,arr5);
          break;
          case 6:
          addChild_(sel2,arr6);
          break;
          case 7:
          addChild_(sel2,arr7);
          break;
          case 8:
          addChild_(sel2,arr8);
          break;
          case 9:
          addChild_(sel2,arr9);
          break;
          case 10:
          addChild_(sel2,arr10);
          break;
          case 11:
          addChild_(sel2,arr11);
          break;
          case 12:
          addChild_(sel2,arr12);
          break;
          case 13:
          addChild_(sel2,arr13);
          break;
          case 14:
          addChild_(sel2,arr14);
          break;
          case 15:
          addChild_(sel2,arr15);
          break;
          case 16:
          addChild_(sel2,arr16);
          break;
          case 17:
          addChild_(sel2,arr17);
          break;
          case 18:
          addChild_(sel2,arr18);
          break;
          case 19:
          addChild_(sel2,arr19);
          break;
          case 20:
          addChild_(sel2,arr20);
          break;
      }
    };
    //删除函数
    function remoOpt() {
      for(var i = sel2.children.length-1;i>=0;i--){
        sel2.children[i].remove();
      }
    }
 }
  
  
  
//交易管理 - 订单查询 - 复选框
function as(){
	var $in = $('.inlineCheckbox1');  	  //所有的复选框
	var num =  $in.length;       			 //所有复选框的length
	var ckall = $('#Checkbox1').get(0);  //全选按钮input
	var n = 0;
	function checkAll () { 
		
		$in.each(function() { if (this.checked){n++;}});
//		ckall.checked = (n == num?false:true);	
//		console.log("(n == num)")
	}
			checkAll();
			/*当全选被选中的时候，下面的所有选项都被选中，否则全部没选中*/
			$('#Checkbox1').click(function(){$in.each(function(){this.checked = ckall.checked;})})
			/*实时监测功能----每一次选中都要判断是否被全选*/
			$in.each(function(){$in.click(function(){checkAll();})})
		}


		//召唤模态框-订单查询
		function show_(){	
			var interface_ = "artTemplate_motal/model_1_1.html"
			batch_model(interface_,"添加新的通知地址")
		}
		
		
		//召唤模态框-对私代发
		function model_daiFa(){	
			var interface_ = "artTemplate_motal/model_2_1.html"
			batch_model(interface_,"添加新的通知地址")
		}
		
		
		//召唤模态框-添加银行卡
		function add_pay(){	
			var html = '<div class="add-pay">'+
								'<p>账号编号：<span style="margin-left: 30px;">9658</span></p>'+
								'<p>用户ID：<span style="margin-left: 47px;">8989</span></p>'+
								'<p>持卡人：<span style="margin-left: 44px;">刘大壮</span></p>'+
								'<p>银行卡号：<span style="margin-left: 31px;">***************6888</span></p>'+
								'<p>银行名称：<span style="margin-left: 29px;">工商银行</span></p>'+
								'<p>开户所在地：<span style="margin-left: 16px;">广东省-深圳市</span></p>'+
								'<p>开户支行：<span style="margin-left: 30px;">海岸城支行</span></p>'+
								'<p>账号类型：<span style="margin-left: 30px;">私</span></p>'+
								'<p>状态：<span style="color: cornflowerblue;margin-left: 57px;">正常</span></p>'+
								'<p>添加时间：<span style="margin-left: 30px;">2014-10-21 09:22:33</span></p>'+
							'</div>'	
			$("#myModalLabel").html("银行卡详情");//添加模态框标题
			$("#modal-body").html(html); //添加模态框内容
		$('#myModal').modal("show"); 
		}
		
		/*
		 * 召唤模态框-银行卡详情
		 */
		function model_daiFa(){	
//			var template_ = "artTemplate_motal/add_yinhangka.html";
//			batch_m(template_);
			//	$("#title").html('<span data-toggle="tooltip" data-placement="right"  title="默认提示信息！">企业账户管理 <img src="img/sl24.svg"></img></span>');
			//	setTimeout(function(){add_date("#datetimeStart_3","#datetimeEnd_3")},500)//延时加载日期控件
			//	add_date_11("#datetimeStart_12","#datetimeEnd_12");//日期控件
			//setTimeout(function(){hcharts()},1000)//统计图控件
			setTimeout(function(){$(function () { option1("selProvince110","selProvince220"); });},500) //启用页面所有的标签	a1 切换公私的下划线效果
						
						
//			$("#myModalLabel").html("* 添加结算银行卡");//添加模态框标题
//			//$(".modal-body").html(html); //添加模态框内容
//			$('#myModal').modal("show"); 
			var interface_ = "artTemplate_motal/model_2_1.html"
			batch_model(interface_,"提交付款确认信息")
		}
		
		/*
		 * 召唤模态框-银行卡详情
		 */
		function model_pass(){	
			var interface_ = "artTemplate_motal/pass_.html"
			batch_model(interface_,"*设置敏感操作密码")
		}
		
		/*
		 * 召唤模态框 - 绑定电子邮箱
		 */
		function model_email(){	
			var interface_ = "artTemplate_motal/email_.html"
			batch_model(interface_,"*设置绑定电子邮箱")
		}
		/*
		 * 召唤模态框 - 绑定电子邮箱 - 发送按钮
		 */
		var i = 59;
		function email_60(){i = 59;$("#btn_").attr({"disabled":true});$("#btn_").text("59秒");if(i >= 0){inti = setInterval("Timing()",1000);setTimeout("clearInterval(inti)",60000);}else{return;}}
		function Timing(){i--;if (i>0) { $("#btn_").text(i + "秒");}else {$("#btn_").text("发送验证码"); $("#btn_").attr({"disabled":false});}}
		
		
/*
 * 敏感密码操作 - 修改敏感密码操作
 */
	function pa() {
		var interface_ = "artTemplate_motal/pass_xg.html"
	batch_model(interface_,"* 修改敏感密码操作")
	
	}
	/*
 * 敏感密码操作 - 找回敏感密码操作
 */
	function passwordReset() {
		var interface_ = "artTemplate_motal/passwordReset.html"
	batch_model(interface_,"* 找回敏感密码操作")
	
	}
/*
 * 待办事项 - 修改敏感操作密码提交验证
 */
function password_() {
	var inpu1 = $("#inputGroupSuccess31").val().length
	var inpu2 = $("#inputGroupSuccess32").val().length
	var inpu3 = $("#inputGroupSuccess33").val().length
//	alert(inpu1)
	if(inpu1 >= 6 && inpu2 >= 6 && inpu3 >= 6 && inpu1 <= 20 && inpu2 <= 20 && inpu3 <= 20){
		if(inpu2 === inpu3){
			alert("已验证")
		}else{ alert("请确认两次密码输入！"); return}
	}else{return alert("密码勿使用特殊字符，不可少于6位切不大于20位！"); }
}

/*
 * 待办事项 - 修改登录密码提交验证
 */
function password() {
//	var inpu1 = $("#inputGroupSuccess31").val().length
	var inpu2 = $("#password_m").val().length
	var inpu3 = $("#password_my").val().length
//	alert(inpu1)
	if(inpu2 >= 6 && inpu3 >= 6  && inpu2 <= 24 && inpu3 <= 24){
		if(inpu2 === inpu3){
			alert("已验证")
		}else{ alert("请确认两次密码输入！"); return}
	}else{return alert("密码勿使用特殊字符，不可少于6位切不大于20位！"); }
}






		/*
		 * 结算卡管理-添加新卡事件
		 */
//		addKa()
			$("#fukuan1").click(function () {
				alert("提交银行卡")
			})
			function addKa() {
				alert("提交银行卡")
			}
		
		
		
		/*
		 * 上传证件
		 * 1.点击元素
		 * 2.显示文件路径
		 * 3.显示错误信息
		 */
		function up(upload,FileName,Tip){
			$(upload).on("change","input[type='file']",function(){
    			var filePath=$(this).val();
    			if(filePath.indexOf("jpg")!=-1 || filePath.indexOf("png")!=-1){
        			$(Tip).html("").hide();
        			var arr=filePath.split('\\');
        			var fileName=arr[arr.length-1];
        			$(FileName).html( "已选择图片文件：" + fileName);
    				}else{
        				$(FileName).html("");
        				$(Tip).html("请上传png或者jpg格式的文件类型！").show();
        				return false 
    					}
				})
				}
		
		
		/*
		 * 渠道概览统计图方法
		 */
				function hcharts(){
		var chart = new Highcharts.Chart({
        chart: {
            renderTo: 'container',
            type: 'column',
            options3d: {
                enabled: true,
                alpha: 18,
                beta: 1,
                depth: 100,
                viewDistance: 25
            }
        },
        title: {
            text: '龙宝-支付渠 （ 笔 ）'
        },
        subtitle: {
            text: 'www.longpay.com'
        },
        xAxis: {
            categories: ['支付宝', '微信', '网上银行', '财付通', '支付宝扫码', '骏网', '盛大卡', '征途', 'Q币', '久游', '网易卡', '完美卡', '搜狐卡', '纵游', '天宏卡', '天下卡', '光宇卡', '神州行', '联通卡', '电信卡', '网上银行1', '微信1', '支付宝1', '微信2']
        },
        plotOptions: {
            column: {
                depth: 25
            }
        },
        series: [{
        		
            name:'支付渠道统计',
            data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4,79.9, 87.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 195.6, 214.4]
        }]
    });
    function showValues() {
        $('#alpha-value').html(chart.options.chart.options3d.alpha);
        $('#beta-value').html(chart.options.chart.options3d.beta);
        $('#depth-value').html(chart.options.chart.options3d.depth);
    }
    // Activate the sliders
    $('#sliders input').on('input change', function () {
        chart.options.chart.options3d[this.id] = this.value;
        showValues();
        chart.redraw(false);
    });
//  showValues();
	$(".highcharts-axis-title").text("渠道交易量（ 笔 ）")
   }

			/*
			 * 财务汇总的鼠标划入效果
			 */
			function a(){
				$(".finance_p22 span").click(function(){
			$(".finance_p22 span>d").addClass('intro1').removeClass('show1')
			$(this).find('d').addClass('show1');
			$(".finance_p22 span>d").removeClass('intro1')
			})
			}
			/*
			 * 应用概览总的鼠标划入效果
			 */
			function b(){
				$("#title span").click(function(){
			$("#title span>d").addClass('intro1').removeClass('show1')
			$(this).find('d').addClass('show1');
			$("#title span>d").removeClass('intro1')
			})
			}
/*
 * 财务汇总-每日每月切换
 */
function switch1(){
	$(".account_1").css("display","block")
	$(".account_2").css("display","none")
}
function switch2(){
	$(".account_2").css("display","block")
	$(".account_1").css("display","none")
}

			/*
			 * 支付交易-对公、私代发的鼠标划入效果
			 */
			function a1(){
				$(".finance_p23 span").click(function(){
			$(".finance_p23 span").addClass('intro2').removeClass('show2')
			$(this).addClass('show2');
			$(".finance_p23 span").removeClass('intro2')
			})
			}
/*
 * 支付交易-对公、私代发
 */
function switch3(){
	$(".account_1").css("display","block")
	$(".account_2").css("display","none")
	$(".account_3").css("display","none")
	$(".finance_p23>span>d").css("border-bottom"," 0px solid #000000")
	$(".finance_p23>span:nth-child(1)>d").css("border-bottom"," 4px solid #000000")
}
function switch4(){
	$(".account_2").css("display","block")
	$(".account_1").css("display","none")
	$(".account_3").css("display","none")
}
function switch5(){
	$(".account_2").css("display","none")
	$(".account_1").css("display","none")
	$(".account_3").css("display","block")
	$(".finance_p23>span>d").css("border-bottom"," 0px solid #000000")
	$(".finance_p23>span:nth-child(2)>d").css("border-bottom"," 4px solid #000000")
}



/*
 * 二级联动城市选择器完整版
 * option(sheng,shi )
 * sheng:省份ID
 * shi：城市ID
 */

	function option1( in1, in2){
	
	
	var sel1 = document.getElementById( in1 );
	var sel2 = document.getElementById( in2 );
//	console.log(sel1)
    var arr =["北京", "上海", "天津", "重庆", "浙江", "江苏", "广东", "福建", "湖南", "湖北", "辽宁","吉林", "黑龙江", "河北", "河南", "山东", "陕西", "甘肃", "新疆", "青海", "山西", "四川","贵州", "安徽", "江西", "云南", "内蒙古", "西藏", "广西", "宁夏", "海南", "香港", "台湾", "澳门"];
   			var beijing = ["东城区", "西城区", "海淀区", "朝阳区", "丰台区", "石景山区", "通州区", "顺义区", "房山区", "大兴区", "昌平区", "怀柔区", "平谷区", "门头沟区", "延庆县", "密云县"];
			var shanghai = ["浦东新区", "徐汇区", "长宁区", "普陀区", "闸北区", "虹口区", "杨浦区", "黄浦区", "卢湾区", "静安区", "宝山区", "闵行区", "嘉定区", "金山区", "松江区", "青浦区", "南汇区", "奉贤区", "崇明县"];
			var tianjing = ["河东", "南开", "河西", "河北", "和平", "红桥", "东丽", "津南", "西青", "北辰", "塘沽", "汉沽", "大港", "蓟县", "宝坻", "宁河", "静海", "武清"];
			var chongqing = ["渝中区", "大渡口区", "江北区", "沙坪坝区", "九龙坡区", "南岸区", "北碚区", "万盛区", "双桥区", "渝北区", "巴南区", "万州区", "涪陵区", "黔江区", "长寿区", "江津区", "合川区", "永川区", "南川区"];
			var jiangsu = ["南京", "无锡", "常州", "徐州", "苏州", "南通", "连云港", "淮安", "扬州", "盐城", "镇江", "泰州", "宿迁"];
			var zhejiang = ["杭州", "宁波", "温州", "嘉兴", "湖州", "绍兴", "金华", "衢州", "舟山", "台州", "利水"];
			var guangdong = ["广州", "韶关", "深圳", "珠海", "汕头", "佛山", "江门", "湛江", "茂名", "肇庆", "惠州", "梅州", "汕尾", "河源", "阳江", "清远", "东莞", "中山", "潮州", "揭阳"];
			var fujiang = ["福州", "厦门", "莆田", "三明", "泉州", "漳州", "南平", "龙岩", "宁德"];
			var hunan = ["长沙", "株洲", "湘潭", "衡阳", "邵阳", "岳阳", "常德", "张家界", "益阳", "郴州", "永州", "怀化", "娄底", "湘西土家苗族自治区"];
			var hubei = ["武汉", "襄阳", "黄石", "十堰", "宜昌", "鄂州", "荆门", "孝感", "荆州", "黄冈", "咸宁", "随州", "恩施土家族苗族自治州"];
			var liaoning = ["沈阳", "大连", "鞍山", "抚顺", "本溪", "丹东", "锦州", "营口", "阜新", "辽阳", "盘锦", "铁岭", "朝阳", "葫芦岛"];
			var jilin = ["长春", "吉林", "四平", "辽源", "通化", "白山", "松原", "白城", "延边朝鲜族自治区"];
			var heilongjiang = ["哈尔滨", "齐齐哈尔", "鸡西", "牡丹江", "佳木斯", "大庆", "伊春", "黑河", "大兴安岭"];
			var hebei = ["石家庄", "保定", "唐山", "邯郸", "承德", "廊坊", "衡水", "秦皇岛", "张家口"];
			var henan = ["郑州", "洛阳", "商丘", "安阳", "南阳", "开封", "平顶山", "焦作", "新乡", "鹤壁", "许昌", "漯河", "三门峡", "信阳", "周口", "驻马店", "济源"];
			var shandong = ["济南", "青岛", "菏泽", "淄博", "枣庄", "东营", "烟台", "潍坊", "济宁", "泰安", "威海", "日照", "滨州", "德州", "聊城", "临沂"];
			var shangxi = ["西安", "宝鸡", "咸阳", "渭南", "铜川", "延安", "榆林", "汉中", "安康", "商洛"];
			var gansu = ["兰州", "嘉峪关", "金昌", "金川", "白银", "天水", "武威", "张掖", "酒泉", "平凉", "庆阳", "定西", "陇南", "临夏", "合作"];
			var qinghai = ["西宁", "海东地区", "海北藏族自治州", "黄南藏族自治州", "海南藏族自治州", "果洛藏族自治州", "玉树藏族自治州", "海西蒙古族藏族自治州"];
			var xinjiang = ["乌鲁木齐", "奎屯", "石河子", "昌吉", "吐鲁番", "库尔勒", "阿克苏", "喀什", "伊宁", "克拉玛依", "塔城", "哈密", "和田", "阿勒泰", "阿图什", "博乐"];
			var shanxi = ["太原", "大同", "阳泉", "长治", "晋城", "朔州", "晋中", "运城", "忻州", "临汾", "吕梁"];
			var sichuan = ["成都", "自贡", "攀枝花", "泸州", "德阳", "绵阳", "广元", "遂宁", "内江", "乐山", "南充", "眉山", "宜宾", "广安", "达州", "雅安", "巴中", "资阳", "阿坝藏族羌族自治州", "甘孜藏族自治州", "凉山彝族自治州"];
			var guizhou = ["贵阳", "六盘水", "遵义", "安顺", "黔南布依族苗族自治州", "黔西南布依族苗族自治州", "黔东南苗族侗族自治州", "铜仁", "毕节"];
			var anhui = ["合肥", "芜湖", "安庆", "马鞍山", "阜阳", "六安", "滁州", "宿州", "蚌埠", "巢湖", "淮南", "宣城", "亳州", "淮北", "铜陵", "黄山", "池州"];
			var jiangxi = ["南昌", "九江", "景德镇", "萍乡", "新余", "鹰潭", "赣州", "宜春", "上饶", "吉安", "抚州"];
			var yunnan = ["昆明", "曲靖", "玉溪", "保山", "昭通", "丽江", "普洱", "临沧", "楚雄彝族自治州", "大理白族自治州", "红河哈尼族彝族自治州", "文山壮族苗族自治州", "西双版纳傣族自治州", "德宏傣族景颇族自治州", "怒江傈僳族自治州", "迪庆藏族自治州"];
			var neimenggu = ["呼和浩特", "包头", "乌海", "赤峰", "通辽", "鄂尔多斯", "呼伦贝尔", "巴彦淖尔", "乌兰察布"];
			var guangxi = ["南宁", "柳州", "桂林", "梧州", "北海", "防城港", "钦州", "贵港", "玉林", "百色", "贺州", "河池", "崇左"];
			var xizang = ["拉萨", "昌都地区", "林芝地区", "山南地区", "日喀则地区", "那曲地区", "阿里地区"];
			var ningxia = ["银川", "石嘴山", "吴忠", "固原", "中卫"];
			var hainan = ["海口", "三亚"];
			var xianggang = ["中西区", "湾仔区", "东区", "南区", "九龙城区", "油尖旺区", "观塘区", "黄大仙区", "深水埗区", "北区", "大埔区", "沙田区", "西贡区", "元朗区", "屯门区", "荃湾区", "葵青区", "离岛区"];
			var aomeng = ["澳门半岛", "氹仔岛", "路环岛"];
			var taiwan = ["台北", "高雄", "基隆", "台中", "台南", "新竹", "嘉义"];
			
	
    function addChild(abj, arr) {
      for (var i = 0; i < arr.length; i++) {
        // 循环创建opt元素
        var opt = document.createElement("option");
        // 设置option元素的内容，内容为传入的数组内容
        opt.innerText = arr[i];
        // 把option添加到select中
        abj.appendChild(opt);
//      debugger
      }
    }
    
    // 给第一个下拉列表添加数据
    addChild(sel1, arr);
    // 给第一个下拉列表添加改变值得方法
    sel1.onchange = function () {
      remoOpt();
//    remoOpt1()
//      console.log(sel1.selectedIndex)
      switch (sel1.selectedIndex){
          case 1:
          addChild(sel2,beijing);
          break;
          case 2:
          addChild(sel2,shanghai);
          break;
          case 3:
          addChild(sel2,tianjing);
          break;
        	  case 4:
          addChild(sel2,chongqing);
          break;
          case 5:
          addChild(sel2,zhejiang);
          break;
          case 6:
          addChild(sel2, jiangsu);
          break;
          case 7:
          addChild(sel2,guangdong);
          break;
          case 8:
          addChild(sel2,fujiang);
          break;
          case 9:
          addChild(sel2,hunan);
          break;
          case 10:
          addChild(sel2,hubei);
          break;
          case 11:
          addChild(sel2,liaoning);
          break;
          case 12:
          addChild(sel2,jilin);
          break;
          case 13:
          addChild(sel2,heilongjiang);
          break;
          case 14:
          addChild(sel2,hebei);
          break;
          case 15:
          addChild(sel2,henan);
          break;
          case 16:
          addChild(sel2,shandong);
          break;
          case 17:
          addChild(sel2,shangxi);
          break;
          case 18:
          addChild(sel2,gansu);
          break;
          case 19:
          addChild(sel2, xinjiang);
          break;
          case 20:
          addChild(sel2,qinghai);
          break;
          case 21:
          addChild(sel2,shanxi);
          break;
         
          case 22:
          addChild(sel2,sichuan);
          break;
          
          case 23:
          addChild(sel2,guizhou);
          break;
          
          case 24:
          addChild(sel2,anhui);
          break;
          
          case 25:
          addChild(sel2,jiangxi);
          break;
          
          case 26:
          addChild(sel2,yunnan);
          break;
          
          case 27:
          addChild(sel2,neimenggu);
          break;
            case 28:
          addChild(sel2,xizang);
          break;
            case 29:
          addChild(sel2, guangxi);
          break;
            case 30:
          addChild(sel2,ningxia);
          break;
            case 31:
          addChild(sel2,hainan);
          break;
            case 32:
          addChild(sel2,xianggang);
          break;
            case 33:
          addChild(sel2,taiwan);
          break;
            case 34:
          addChild(sel2,aomeng);
          break;
      }
    };
    
    
    //删除函数
    function remoOpt() {
      for(var i = sel2.children.length-1;i>=0;i--){
        sel2.children[i].remove();
      }
    }
     //删除函数
    function remoOpt1() {
      for(var i = sel1.children.length-1;i>=0;i--){
        sel1.children[i].remove();
      }
    }
 }

/*
 * 支付渠道 - 侧边栏筛选
 */
function dataSense(sense){

switch (sense){
case "all":
	payCh(".all")
//  alert("0")
    break;
case 'app':
    payCh(".app")
    break;
case 'wap':
    payCh(".wap")
    break;
case 'pub':
    payCh(".pub")
    break;
case 'offline':
   payCh(".offline")
    break;
case 'pc':
   payCh(".pc")
    break;
case 'instalments':
   alert("6")
    break;
case 'transfer':
    alert("7")
    break;
case 'wx_lite':
    alert("8")
    break;
}
//alert(a)
}

	function payCh(data){
		$(".all").css("display","none")
		$(data).css("display","table-row")
	}
	
//		console.log(this)
$(document).on("click","#cc_sidebar a",function(){
	$("#cc_sidebar a").removeClass("active")
	$(this).addClass("active")
	})



/*
 * 待办事项
 */
function wait(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/wait.html";
	batch_(template_);
	$("#title").html("<span style='margin-left: 25px;'>待办事项</span>")
	
}
/*
 * 渠道概览
 */
function appOverview(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/appOverview.html";
	batch_(template_);
	$("#title").html("<span onclick='appOverview()'><d>时段概览</d></span><span onclick='analysis_2()'><d>渠道概览</d></span>");
	
	}
/*
 * 渠道定制
 */
function payChannel(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/payChannel.html";
	batch_(template_);
	
	$("#title").html('<span style="margin-left: 25px;"  data-toggle="tooltip" data-placement="right"  title="默认支付渠道为全部开通状态！">渠道定制 <img src="img/sl24.svg"></img></span>');
	setTimeout(function(){$(function () { $("[data-toggle='tooltip']").tooltip(); });},500)//启用页面所有的标签
}
/*
 * 订单查询
 */
function order(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/order.html";
	batch_(template_);
	$("#title").html('<span style="margin-left: 25px;" data-toggle="tooltip" data-placement="right"  title="默认支付渠道为全部开通状态！">订单查询 <img src="img/sl24.svg"></img></span>');
	setTimeout(function(){$(function () { $("[data-toggle='tooltip']").tooltip(); });},500)//启用页面所有的标签
	setTimeout(function(){add_date("#datetimeStart_2","#datetimeEnd_2")},500)//延时加载日期控件
	
}
/*
 * 批量销卡
 */
function retreat(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/retreat.html";
	batch_(template_);
	$("#title").html('<span style="margin-left: 25px;" data-toggle="tooltip" data-placement="right"  title="默认支付渠道为全部开通状态！">批量销卡 <img src="img/sl24.svg"></img></span>');
	setTimeout(function(){$(function () { $("[data-toggle='tooltip']").tooltip(); });},500)//启用页面所有的标签
	setTimeout(function(){$(function () { option();});},500)
}
/*
 * 财务汇总
 */
function finance(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/finance.html";
	batch_(template_);
//	'<span data-toggle="tooltip" data-placement="right"  title="你也可以使用 帮助中心 寻找答案,或者 提交工单 、 联系客服人员。">财务汇总 <img src="img/sl24.svg"></img>	</span><span style="font-weight: 300;font-size: 12px;"> 如果渠道手续费有误，请在 <a href="javascript:volid(0);" onclick="payChannel()">支付渠道</a> 页面针对你开通的渠道配置费率。<a href="javascript:volid(0);" onclick="payChannel()">查看各渠道费率 </a></span>'
	$("#title").html('<p class="finance_p22"><span  onclick="switch1()"> <d class="show1">按产品汇总 </d></span><span onclick="switch2()"><d> 按日期汇总 </d></span></p>');
	setTimeout(function(){$(function () { $("[data-toggle='tooltip']").tooltip(); });},500)//启用页面所有的标签	
	setTimeout(function(){add_date_yue("#datetimeStart_4");a();add_date_nian("#datetimeStart_5")},500)//延时加载日期控件
}
/*
 * 通知地址
 */
function enterprise(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/enterprise.html";
	batch_(template_);
	$("#title").html('<span style="margin-left: 25px;" data-toggle="tooltip" data-placement="right"  title="默认支付渠道为全部开通状态！">通知地址 <img src="img/sl24.svg"></img></span><button style="float: right;margin: 20px;" onclick="addUrl()" type="button" class="btn btn-default"> + 添加新地址</button>');
	setTimeout(function(){$(function () { $("[data-toggle='tooltip']").tooltip(); });},500)//启用页面所有的标签	
}

//通知地址-修改按钮
		function model_1_3(){	
			var interface_ = "artTemplate_motal/model_1_3.html"
			batch_model(interface_,"修改通知地址")
		}
		
		
/*
 * 渠道概览
 */
function analysis_2(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/analysis.html";
	batch_(template_);
	$("#title").html(" <span onclick='appOverview()'><d>时段概览</d></span><span onclick='analysis_2()'><d>渠道概览</d></span>  ");
//	$("#title").html('<span data-toggle="tooltip" data-placement="right"  title="默认支付渠道为全部开通状态！">渠道概览 <img src="img/sl24.svg"></img></span>');
	setTimeout(function(){add_date("#datetimeStart_3","#datetimeEnd_3")},500)//延时加载日期控件
//	add_date_11("#datetimeStart_12","#datetimeEnd_12");//日期控件
	setTimeout(function(){hcharts()},1000)//统计图控件
	setTimeout(function(){$(function () { $("[data-toggle='tooltip']").tooltip(); });},500)//启用页面所有的标签	
}

/*
 * 点击添加银行卡信息的方法
 */
			function hide(){if (y<5) {y++;$("#tbody > tr:nth-child("+ y +")").css({"display":"table-row"});}else {return;}}
			function hide1(){if (x<5) {x++;$("#tbody1 > tr:nth-child("+ x +")").css({"display":"table-row"});}else {return;}}
//			function block_(el){if (y>1) {y--;var p = el.parentNode;p.style.display = "none";}else{return;}}


/*
 * 对私/对公付款 
 */
function payment(){
	 y=1
	 x=1
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/payment.html";
	batch_(template_);
	$("#title").html('<p class="finance_p23"><span class="show2" onclick="switch3()"> <d class="show1">对私/对公付款</d> </span><span onclick="switch5()"> <d>付款记录</d> </span></p>');
//	setTimeout(function(){add_date("#datetimeStart_3","#datetimeEnd_3")},500)//延时加载日期控件
//	add_date_11("#datetimeStart_12","#datetimeEnd_12");//日期控件
//	setTimeout(function(){hcharts()},1000)//统计图控件
	setTimeout(function(){$(function () { $("[data-toggle='tooltip']").tooltip();a1();option1("selProvince11","selProvince22");option1("selProvince12","selProvince23");option1("selProvince13","selProvince24");option1("selProvince14","selProvince25");option1("selProvince15","selProvince26");option1("selProvince30","selProvince31");option1("selProvince32","selProvince33"); option1("selProvince34","selProvince35"); option1("selProvince36","selProvince37"); option1("selProvince38","selProvince39");})},500)//启用页面所有的标签	a1 切换公私的下划线效果
}

/*
 * 对私/对公付款  - 设置防钓鱼按钮 
 */
function model_2_1_1(){
	var interface_ = "artTemplate_motal/model_2_1_1.html"
	batch_model(interface_,"* 设置防钓鱼欺骗提示")
}


//Administration
/*
 * 企业账户管理
 */
function Administration(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/Administration.html";
	batch_(template_);
	$("#title").html('<span style="margin-left: 25px;" data-toggle="tooltip" data-placement="right"  title="默认提示信息！">企业账户管理 <img src="img/sl24.svg"></img></span>');
//	setTimeout(function(){add_date("#datetimeStart_3","#datetimeEnd_3")},500)//延时加载日期控件
//	add_date_11("#datetimeStart_12","#datetimeEnd_12");//日期控件
//	setTimeout(function(){hcharts()},1000)//统计图控件
	setTimeout(function(){$(function () { $("[data-toggle='tooltip']").tooltip();});},500) //启用页面所有的标签	a1 切换公私的下划线效果
}


/*
 *       结算卡管理
 */
function Administration_2(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/Administration_2.html";
	batch_(template_);
	$("#title").html('<span style="margin-left: 25px;" data-toggle="tooltip" data-placement="right"  title="默认提示信息！">结算卡管理 <img src="img/sl24.svg"></img></span>');
//	setTimeout(function(){add_date("#datetimeStart_3","#datetimeEnd_3")},500)//延时加载日期控件
//	add_date_11("#datetimeStart_12","#datetimeEnd_12");//日期控件
//	setTimeout(function(){hcharts()},1000)//统计图控件
	setTimeout(function(){$(function () { $("[data-toggle='tooltip']").tooltip();});},500) //启用页面所有的标签	a1 切换公私的下划线效果	
}
		/*
		 * 结算卡管理 - 修改按钮
		 */
		function model_3_2_1(){	
			var interface_ = "artTemplate_motal/model_3_2_1.html"
			batch_model(interface_,"* 修改结算卡")
		}

/*
 * 提现管理
 */
function Administration_3(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/Administration_3.html";
	batch_(template_);
//	$("#title").html('<span style="margin-left: 25px;" data-toggle="tooltip" data-placement="right"  title="默认提示信息！">提现管理 <img src="img/sl24.svg"></img></span>');
	$("#title").html('<p class="finance_p22"><span  onclick="switch1()"> <d class="show1">申请提现管理 </d></span><span onclick="switch2()"><d> 提现历史查询 </d></span></p>');
//	setTimeout(function(){add_date("#datetimeStart_3","#datetimeEnd_3")},500)//延时加载日期控件
//	add_date_11("#datetimeStart_12","#datetimeEnd_12");//日期控件
//	setTimeout(function(){hcharts()},1000)//统计图控件
	setTimeout(function(){$(function () { $("[data-toggle='tooltip']").tooltip();});},500) //启用页面所有的标签	a1 切换公私的下划线效果
}
/*
 * 商户进件
 */
function Administration_4(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/Administration_4.html";
	batch_(template_);
	$("#title").html("<span onclick='Administration_4()'><d>商户进件 </d></span> <span onclick='merchantList()'><d>商户列表</d></span>");
//	setTimeout(function(){add_date("#datetimeStart_3","#datetimeEnd_3")},500)//延时加载日期控件
//	add_date_11("#datetimeStart_12","#datetimeEnd_12");//日期控件
//	setTimeout(function(){hcharts()},1000)//统计图控件
	setTimeout(function(){$(function () { up(".a-upload1",".showFileName1",".fileerrorTip1");up(".a-upload2",".showFileName2",".fileerrorTip2");up(".a-upload3",".showFileName3",".fileerrorTip3");up(".a-upload4",".showFileName4",".fileerrorTip4"); $("[data-toggle='tooltip']").tooltip();});},500) //启用页面所有的标签	a1 切换公私的下划线效果 美化上传按钮
}
/*
 * 下载报表
 */
function download(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/download.html";
	batch_(template_);
	$("#title").html('<span style="margin-left: 25px;">对账单下载 </span>');
//	setTimeout(function(){add_date("#datetimeStart_3","#datetimeEnd_3")},500)//延时加载日期控件
//	add_date_11("#datetimeStart_12","#datetimeEnd_12");//日期控件
//	setTimeout(function(){hcharts()},1000)//统计图控件
	setTimeout(function(){$(function () { $("[data-toggle='tooltip']").tooltip();});},500) //启用页面所有的标签	a1 切换公私的下划线效果
}
/*
 * API接口代付
 */
function jiaoyi_2(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/jiaoyi_2.html";
	batch_(template_);
	$("#title").html('<p class="finance_p22"><span  onclick="switch1()"> <d class="show1">API代付 </d></span><span onclick="switch2()"><d> 代付明细 </d></span></p>');
//	setTimeout(function(){add_date("#datetimeStart_3","#datetimeEnd_3")},500)//延时加载日期控件
//	add_date_11("#datetimeStart_12","#datetimeEnd_12");//日期控件
//	setTimeout(function(){hcharts()},1000)//统计图控件
	setTimeout(function(){$(function () { $("[data-toggle='tooltip']").tooltip();});},500) //启用页面所有的标签	a1 切换公私的下划线效果
}


/*
 * API接口代付 - 代付明细 - 查看按钮
 */
function jiaoyi_2_btn(){
	var interface_ = "artTemplate_motal/model_2_2.html"
	batch_model(interface_,"* 付款明细")
}

/*
 * 代付记录
 */
function jiaoyi_3(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/jiaoyi_3.html";
	batch_(template_);
	$("#title").html('<span style="margin-left: 25px;">代付记录 <img src="img/sl24.svg"  data-toggle="tooltip" data-placement="right"  title="默认提示信息！" ></img></span>');
	setTimeout(function(){add_date("#datetimeStart_30","#datetimeEnd_30")},500)//延时加载日期控件
	//add_date_11("#datetimeStart_30","#datetimeEnd_30");//日期控件
//	setTimeout(function(){hcharts()},1000)//统计图控件
	setTimeout(function(){$(function () { $("[data-toggle='tooltip']").tooltip();});},500) //启用页面所有的标签	a1 切换公私的下划线效果
	//日期控件
//	setTimeout(function(){hcharts_line(); add_date("#datetimeStart_1","#datetimeEnd_1");$(function () { $("[data-toggle='tooltip']").tooltip();b(); });},500)
}
/*
 * 代付设置
 */
function jiaoyi_4(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/jiaoyi_4.html";
	batch_(template_);
	$("#title").html('<span style="margin-left: 25px;">代付设置 <img src="img/sl24.svg"  data-toggle="tooltip" data-placement="right"  title="默认提示信息！" ></img></span>');
//	setTimeout(function(){add_date("#datetimeStart_3","#datetimeEnd_3")},500)//延时加载日期控件
//	add_date_11("#datetimeStart_12","#datetimeEnd_12");//日期控件
//	setTimeout(function(){hcharts()},1000)//统计图控件
	setTimeout(function(){$(function () { $("[data-toggle='tooltip']").tooltip();});},500) //启用页面所有的标签	a1 切换公私的下划线效果
}

/*
 * 财务管理 - 结算卡管理 
 */
function model3_2(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/model3_2.html";
	batch_(template_);
	$("#title").html('<span style="margin-left: 25px;"> 结算卡管理 <img src="img/sl24.svg"  data-toggle="tooltip" data-placement="right"  title="默认提示信息！" ></img></span><button style="float: right;margin: 21px;" onclick="addCard()" type="button" class="btn btn-default"> + 添加结算卡</button>');
//	//日期控件
//	setTimeout(function(){hcharts_line(); add_date("#datetimeStart_1","#datetimeEnd_1");$(function () { $("[data-toggle='tooltip']").tooltip();b(); });},500)
//	//统计图控件
//	setTimeout(function(){hcharts_line_1()},700)
	}

/*
 * 商户管理
 */
			
function merchant(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/Administration_4.html";
	batch_(template_);
	$("#title").html(" <span onclick='Administration_4()'><d>商户进件</d> </span> <span onclick='merchantList()'><d>商户列表</d></span>  ");
//	//日期控件
//	setTimeout(function(){hcharts_line(); add_date("#datetimeStart_1","#datetimeEnd_1");$(function () { $("[data-toggle='tooltip']").tooltip();b(); });},500)
//	//统计图控件
//	setTimeout(function(){hcharts_line_1()},700)
	
	setTimeout("_init_area()",2500)//三级联动城市选择器
	setTimeout(function(){$(function () { up(".a-upload1",".showFileName1",".fileerrorTip1");up(".a-upload2",".showFileName2",".fileerrorTip2");up(".a-upload3",".showFileName3",".fileerrorTip3");up(".a-upload4",".showFileName4",".fileerrorTip4"); $("[data-toggle='tooltip']").tooltip();});},500) //启用页面所有的标签	a1 切换公私的下划线效果
	}

	


/*
 * 商户列表
 */
function merchantList(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/merchantList.html";
	batch_(template_);
	$("#title").html(" <span onclick='Administration_4()'><d>商户进件 </d></span> <span onclick='merchantList()'><d>商户列表</d></span>  ");
//	//日期控件
//	setTimeout(function(){hcharts_line(); add_date("#datetimeStart_1","#datetimeEnd_1");$(function () { $("[data-toggle='tooltip']").tooltip();b(); });},500)
//	//统计图控件
//	setTimeout(function(){hcharts_line_1()},700)
	}

/*
 * 商户列表
 */
function detailed(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/detailed.html";
	batch_(template_);
	$("#title").html(" <span style='margin-left: 25px;'>账户明细查询 </span>  ");
//	//日期控件
//	setTimeout(function(){hcharts_line(); add_date("#datetimeStart_1","#datetimeEnd_1");$(function () { $("[data-toggle='tooltip']").tooltip();b(); });},500)
//	//统计图控件
//	setTimeout(function(){hcharts_line_1()},700)
	}



/*
 * 交易管理 - 通知地址
 */
function addUrl(){
	var interface_ = "artTemplate_motal/addURL.html"
	batch_model(interface_,"* 添加新的通知地址")
}

/*
 *  财务管理 - 结算卡管理 - 添加结算卡按钮
 */
function addCard(){
	var interface_ = "artTemplate_motal/model3_2.html"
	batch_model(interface_,"* 添加结算卡")
	setTimeout(function(){$(function () { $("[data-toggle='tooltip']").tooltip();a1();option1("selProvince11","selProvince22");option1("selProvince12","selProvince23");option1("selProvince13","selProvince24");option1("selProvince14","selProvince25");option1("selProvince15","selProvince26");option1("selProvince30","selProvince31");option1("selProvince32","selProvince33"); option1("selProvince34","selProvince35"); option1("selProvince36","selProvince37"); option1("selProvince38","selProvince39");})},500) //启用页面所有的标签	a1 切换公私的下划线效果
}

/*
 *  财务管理 - 提现管理 - 申请提现按钮(先弹出敏感操作密码验证)
 */

function pass_sensitive(){
	var interface_ = "artTemplate_motal/pass_sensitive.html"
	batch_model(interface_,"")
//	setTimeout(function(){$(function () { $("[data-toggle='tooltip']").tooltip();a1();option1("selProvince11","selProvince22");option1("selProvince12","selProvince23");option1("selProvince13","selProvince24");option1("selProvince14","selProvince25");option1("selProvince15","selProvince26");option1("selProvince30","selProvince31");option1("selProvince32","selProvince33"); option1("selProvince34","selProvince35"); option1("selProvince36","selProvince37"); option1("selProvince38","selProvince39");})},500) //启用页面所有的标签	a1 切换公私的下划线效果
}



/*
 *  财务管理 - 提现管理 - 敏感密码确认按钮
 */
function pass_sensitive_btn(){
	//发送敏感密码请求判断返回值
	var pas = $("#pass_sensitive").val()
	//发送请求验证密码
	
	//如果正确 - 跳转到  withdraw()
	if (pas == "123456") {
		withdraw();
	} else{
		$("#errorLabel").css("opacity",1)
		//否侧提示剩余错误次数
		$("#pass_sensitive").css({"border-color":"#ec7063","-webkit-box-shadow": "inset 0 1px 1px rgba(236, 112, 99, .075), 0 0 6px #ec7063","box-shadow": "inset 0 1px 1px rgba(236, 112, 99, .075), 0 0 6px #ec7063"})
		
	}
}


/*
 *  财务管理 - 提现管理 - 申请提现按钮(判断之后再弹出提现输入框)
 */
function withdraw(){
	var interface_ = "artTemplate_motal/model3_1.html"
	batch_model(interface_,"* 申请提现")
//	setTimeout(function(){$(function () { $("[data-toggle='tooltip']").tooltip();a1();option1("selProvince11","selProvince22");option1("selProvince12","selProvince23");option1("selProvince13","selProvince24");option1("selProvince14","selProvince25");option1("selProvince15","selProvince26");option1("selProvince30","selProvince31");option1("selProvince32","selProvince33"); option1("selProvince34","selProvince35"); option1("selProvince36","selProvince37"); option1("selProvince38","selProvince39");})},500) //启用页面所有的标签	a1 切换公私的下划线效果
}



/*
 *  账户系统设置 - 企业成员 - 修改电子邮箱
 */
function email_replace(){
	var interface_ = "artTemplate_motal/email_replace.html"
	batch_model(interface_,"* 修改电子邮箱")
	
}

/*
 *  账户系统设置 - 企业成员 - 修改登录密码
 */
function pass_xg_1(){
	var interface_ = "artTemplate_motal/pass_xg_1.html"
	batch_model(interface_,"* 修改登录密码")
	
}

/*
 *  账户系统设置 - 企业成员 - 修改手机号码
 */
function phone_(){
	var interface_ = "artTemplate_motal/phone_.html"
	batch_model(interface_,"* 更换手机号码")
}

/*
 *  账户系统设置 - 企业资料 - 修改企业负责人
 */
function name_(){
	var interface_ = "artTemplate_motal/admin_name_.html"
	batch_model(interface_,"* 更换企业负责人")
}

/*
 *  账户系统设置 - 企业资料 - 修改企业负责人手机号码
 */
function phone_1(){
	var interface_ = "artTemplate_motal/admin_phone_.html"
	batch_model(interface_,"* 更换负责人手机号码")
}

/*
 *  账户系统设置 - 企业成员 - 邀请成员
 */
function Invitation(){
	var interface_ = "artTemplate_motal/Invitation.html"
	batch_model(interface_,"* 添加管理员")
}

/*
 * 技术开发 - 系统监控
 */
function hig(){
	// var url_ = "/Merchant/Merchant/GetAccounts";
	var template_ = "artTemplate/hig.html";
	batch_(template_);
	$("#title").html('<span style="margin-left: 25px;" data-toggle="tooltip" data-placement="right"  title=""> 系统监控 </img></span>');
	
}